﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using seiacpscs.utilities;

namespace seiacpscs_test.utilities
{
    [TestClass]
    public class FileParserTestCase
    {
        [TestMethod]
        public void TestGetNumbers()
        {
            String filePath = @"C:\comp6411_files\inputfileforTest.txt";

            FileParser parser = new FileParser(filePath);

            int[] items = parser.GetNumbers();
            Assert.AreEqual(items[0], 119);
            Assert.AreEqual(items[1], 206);
            Assert.AreEqual(items[2], 699);
            Assert.AreEqual(items[3], 946);
            Assert.AreEqual(items[4], 635);
            Assert.AreEqual(items[5], 109);
            Assert.AreEqual(items[6], 865);
            Assert.AreEqual(items[7], 639);
            Assert.AreEqual(items[8], 6);
            Assert.AreEqual(items[9], 556);
           
        }
    }
}
